<%@ page 
language="java" 
import="java.util.*" 
import="com.csd.helper.IConstant"
import="com.csd.vo.UserVO"
pageEncoding="UTF-8"
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
HttpSession s = request.getSession();
UserVO uvo =  (UserVO)s.getAttribute(IConstant.userVO);
if(uvo==null || !uvo.getType().equals(IConstant.teacherRole))
{
	response.sendRedirect(path);
}

Integer evaluateID =Integer.parseInt(request.getParameter("evaluateItemID"));
//request.setAttribute("evaluateItemID",evaluateID);

if(evaluateID == null)
	response.sendRedirect(path+"/common/index.jsp");

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/teacher_right.css" rel="stylesheet" type="text/css" />
</head>
<div>
<script language="javascript" type="text/javascript">
	function clickRadio()
	{
		var score1 = document.getElementById('score1');
		var score2 = document.getElementById('score2');
		var score3 = document.getElementById('score3');
		var score4 = document.getElementById('score4');
		var score5 = document.getElementById('score5');
		var score6 = document.getElementById('score6');
		var score7 = document.getElementById('score7');
		var score8 = document.getElementById('score8');
		var score9 = document.getElementById('score9');
		var score10 = document.getElementById('score10');
		
		var score = 0;
		score = score1.value*1 + score2.value*1 + score3.value*1 + score4.value*1 + score5.value*1 +
				score6.value*1 + score7.value*1 + score8.value*1 + score9.value*1 + score10.value*1;
		var total = document.getElementById('total');
		total.value = score;
	}
</script>

<body onload="clickRadio()">
    <div class="main">
     <h1>项目评分</h1>
     <hr /> 
     <noscript>
     <h1 style="color:#F00">注意!</h1>
     <h3>没有开启<span>Javascript支持</span>，这样无法正确评分！</h3>
     </noscript>
     <h3>客观评分</h3> 
     <table width="100%" align="center" cellspacing="20px"> 
       <tr> 
         <td width="250px" class="form_strong">前期研究基础</td>         
         <td>
         	<select id="score1" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>      
       </tr> 
       <tr> 
         <td class="form_strong">研究意义</td> 
         <td>
         	<select id="score2" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">研究目的</td> 
         <td>
         	<select id="score3" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">解决的主要问题</td> 
         <td>
         	<select id="score4" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">研究工作级主要内容</td> 
         <td>
         	<select id="score5" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">主要研究方法</td> 
         <td>
         	<select id="score6" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">人员组成分工</td> 
         <td>
         	<select id="score7" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">项目研究时间进度安排</td> 
         <td>
         	<select id="score8" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">经费使用</td> 
         <td>
         	<select id="score9" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
       <tr> 
         <td class="form_strong">教师意见</td> 
         <td>
         	<select id="score10" onchange="clickRadio()">
            	<option value="5">5 分</option>
                <option value="6">6 分</option>
                <option value="7">7 分</option>
                <option value="8">8 分</option>
                <option value="9">9 分</option>
                <option value="10">10 分</option>
            </select>
         </td>  
       </tr> 
     </table> 
     <form action="<%=path%>/teacherEvaluatetion.action" method="post" accept-charset="UTF-8">
     	<input type="hidden" name="evaluateItemID" value="<%=evaluateID%>" />
        <h3>总分:<span><input type="text" id="total" name="score" readonly="readonly" /></span></h3>
     
     
     <h3>客观评审1</h3> 
    
       <textarea name="comment" cols="80" rows="5">此评论学生可见</textarea> 
    
       <h3>客观评审2</h3> 
       <p> 
         <textarea name="evaluation" cols="80" rows="5">此评论仅管理员可见，学生不可见</textarea> 
       </p> 
       
       
       <input type="submit" name="button" value=" 提交 " /> 
       </form>
    </div>
</body>
</html>
